package com.hertz.iris.view;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import butterknife.ButterKnife;
import butterknife.InjectView;

import com.hertz.iris.R;

public class MatchsFrag extends Fragment {

	
	@InjectView(R.id.match_list_pages)
	ViewPager viewPager;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// Inflate the layout for this fragment
		super.onCreateView(inflater, container, savedInstanceState);
		View v = inflater.inflate(R.layout.match_list_viewpager, container, false);
		ButterKnife.inject(this,v);
		viewPager.setAdapter(new MatchsAdapter(getChildFragmentManager()));
    	viewPager.setCurrentItem(0);
		return v;
	}
	
	public int getCurrentIndex(){
		return viewPager.getCurrentItem();
	}
}
